<script type="text/javascript">
var successFun=function(res){
if(res.code==200){
	alert('更新成功！');
}
}
$(document).ready(function() { 
	var updateOptions	= {dataType:'json',error:doError,success:doSuccess}
    $('#form').ajaxForm(updateOptions); 
}); 
</script>
<div id="content">
<form id="form" action="{url('Site','SaveSeo')}" method="post">
<h3 class="title">URL设置</h3>
<table class="admin-table">
	<tr>
	<td>URL模式</td>
	<td>
<input type="radio" name="mode" id="mode" value="path_info" {if $this->data['seo']['mode']=='path_info'}checked{/if}>带index.php的伪静态
<input type="radio" name="mode" value="rewrite" {if $this->data['seo']['mode']=='rewrite'}checked{/if}>不带index.php的伪静态
<input type="radio" name="mode" value="standard" {if $this->data['seo']['mode']=='standard'}checked{/if}>非伪静态
<span etype='error_info' class="error_info"id="mode_info"></span>
	</td>
	</tr>
	<tr>
	<td>URL后缀</td>
	<td>
<input name="postfix" id="postfix" type="text" value="{$this->data['seo']['postfix']}" /><span etype='error_info' class="error_info"id="postfix_info">使用非伪静态模式的情况下无效</span>
	</td>
	</tr>
	<tr>
	<td>列表页URL简化</td>
	<td>
<input name="listshortcut" id="listshortcut" type="text" value="{$this->data['seo']['listshortcut']}" /><span etype='error_info' class="error_info"id="listshortcut_info">使用非伪静态模式的情况下无效</span>
	</td>
	</tr>
	<tr>
	<td>详情页URL简化</td>
	<td>
<input name="detailshortcut" id="detailshortcut" type="text" value="{$this->data['seo']['detailshortcut']}" /><span etype='error_info' class="error_info"id="detailshortcut_info">使用非伪静态模式的情况下无效</span>
	</td>
	</tr>
	<tr>
	<td>文章列表页URL简化</td>
	<td>
<input name="postlistshortcut" id="postlistshortcut" type="text" value="{$this->data['seo']['postlistshortcut']}" /><span etype='error_info' class="error_info" id="postlistshortcut_info">使用非伪静态模式的情况下无效</span>
	</td>
	</tr>
	<tr>
	<td>文章详情页URL简化</td>
	<td>
<input name="postdetailshortcut" id="postdetailshortcut" type="text" value="{$this->data['seo']['postdetailshortcut']}" /><span etype='error_info' class="error_info" id="postdetailshortcut_info">使用非伪静态模式的情况下无效</span>
	</td>
	</tr>
	<tr>
	<td>频道页URL简化</td>
	<td>
<input name="pindaoindexshortcut" id="pindaoindexshortcut" type="text" value="{$this->data['seo']['pindaoindexshortcut']}" /><span etype='error_info' class="error_info" id="pindaoindexshortcut_info">使用非伪静态模式的情况下无效</span>
	</td>
	</tr>
	<tr>
	<td>专题页URL简化</td>
	<td>
<input name="pageindexshortcut" id="pageindexshortcut" type="text" value="{$this->data['seo']['pageindexshortcut']}" /><span etype='error_info' class="error_info" id="pageindexshortcut_info">使用非伪静态模式的情况下无效</span>
	</td>
	</tr>
</table>

<h3 class="title">SEO设置</h3>
<table class="admin-table">
	<tr>
	<td>首页标题</td>
	<td>
<textarea name="indextitle" id="indextitle" cols="36" rows="3">{$this->data['seo']['indextitle']}</textarea><span etype='error_info' class="error_info"id="indextitle_info"></span>
	</td>
	</tr>
	<tr>
	<td>首页关键词</td>
	<td>
<textarea name="indexkeyword" id="indexkeyword" cols="36" rows="3">{$this->data['seo']['indexkeyword']}</textarea><span etype='error_info' class="error_info"id="indexkeyword_info"></span>
	</td>
	</tr>
	<tr>
	<td>首页描述</td>
	<td>
<textarea name="indexdescription" id="indexdescription" cols="36" rows="3">{$this->data['seo']['indexdescription']}</textarea><span etype='error_info' class="error_info"id="indexdescription_info"></span>
	</td>
	</tr>
	<tr>
	<td>列表页标题</td>
	<td>
<textarea name="listtitle" id="listtitle" cols="36" rows="3" title="{catName}、{keyword}、{page}会自动替换成类目、用户输入的关键词和页码">{$this->data['seo']['listtitle']}</textarea><span etype='error_info' class="error_info"id="listtitle_info"></span>
	</td>
	</tr>
	<tr>
	<td>列表页关键词</td>
	<td>
<textarea name="listkeyword" id="listkeyword" cols="36" rows="3" title="{catName}、{keyword}、{page}会自动替换成类目、用户输入的关键词和页码">{$this->data['seo']['listkeyword']}</textarea><span etype='error_info' class="error_info"id="listkeyword_info"></span>
	</td>
	</tr>
	<tr>
	<td>列表页描述</td>
	<td>
<textarea name="listdescription" id="listdescription" cols="36" rows="3" title="{catName}、{keyword}、{page}会自动替换成类目、用户输入的关键词和页码">{$this->data['seo']['listdescription']}</textarea><span etype='error_info' class="error_info"id="listdescription_info"></span>
	</td>
	</tr>
	<tr>
	<td>详情页标题</td>
	<td>
<textarea name="detailtitle" id="detailtitle" cols="36" rows="3" title="{catName}、{title}、{nick}、{price}会自动替换成类目、商品标题、卖家名称和商品价格">{$this->data['seo']['detailtitle']}</textarea><span etype='error_info' class="error_info"id="detailtitle_info"></span>
	</td>
	</tr>
	<tr>
	<td>详情页关键词</td>
	<td>
<textarea name="detailkeyword" id="detailkeyword" cols="36" rows="3" title="{catName}、{title}、{nick}、{price}会自动替换成类目、商品标题、卖家名称和商品价格">{$this->data['seo']['detailkeyword']}</textarea><span etype='error_info' class="error_info"id="detailkeyword_info"></span>
	</td>
	</tr>
	<tr>
	<td>详情页描述</td>
	<td>
<textarea name="detaildescription" id="detaildescription" cols="36" rows="3" title="{catName}、{title}、{nick}、{price}会自动替换成类目、商品标题、卖家名称和商品价格">{$this->data['seo']['detaildescription']}</textarea><span etype='error_info' class="error_info"id="detaildescription_info"></span>
	</td>
	</tr>
	<tr><td colspan="2"><input id="btnSave" type="submit" value="保存" /></td></tr>
</table>
</form>
</div>